package com.team.lostProperty.mapper;

import com.team.lostProperty.entity.Collect;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author duzq
 * @date 2020/7/25 19:11
 */
@Repository
public interface CollectDao {

    //获取收藏信息
    List<Collect> getCollectById(@Param("userId") long userId,@Param("start") int start);

    //获取收藏条数
    int getAllCount(@Param("userId") long userId);

    //获取收藏信息
    List<Collect> getCollectByUser(@Param("userId")long userId,@Param("page")int page,@Param("limit")int limit);

}
